<!-- 物流信息 -->
<template>
	<view>
		<!-- <view class="flex">
            <button @click="show = 1">默认显示</button>
            <button @click="show = 2">主题色修改</button>
            <button @click="show = 'slot'">自定义插槽</button>
        </view> -->
		<!-- <Logistics v-if="show == 1" :list="dataList"></Logistics>
        <Logistics v-if="show == 'slot'" :list="dataList">
            
            <template v-slot:card="{row}">
                <view class="">
                    <view>自定义流程内容</view>
                    <view class="">物流公司:{{row.type}}</view>
                </view>
            </template>
            
            <template v-slot:process="{row}">
                <view class="">
                    <view>自定义流程内容</view>
                    <view>时间：{{row.time}}</view>
                </view>  
            </template>
        </Logistics> -->
		<Logistics v-if="show == 2" :list="dataList" :orderCode="orderCode" color="#00aaff"></Logistics>
	</view>
</template>

<script>
	import Logistics from '@/pagesData/components/starLee-logistics/logistics.vue';
	export default {
		components: {
			Logistics
		},
		data() {
			return {
				show: '2',
				dataList: [

				],
				orderCode:''
			}
		},
		onLoad(params) {
			this.orderCode = params.orderCode
			// this.$u.api.shop.wlInfo({
			// 		soCode: params.orderCode
			// 	})
			// 	.then(res => {
			// 		// this.dataList = res.traces.reverse()
			// 		// this.dataList = res.map(item=>{
			// 		// 	if(item.Traces){
			// 		// 		item.Traces = item.Traces.reverse()
			// 		// 	}
			// 		// 	return item
			// 		// })
			// 		this.dataList = res
			// 		console.log(res, 'res ===');
			// 	});
		},
		methods: {

		}
	}
</script>

<style>
	page {
		background: #eee;
	}

	.flex {
		display: flex;
		padding: 20rpx 0;
	}
</style>